<template>
  <footer class="app-footer">
    <div class="footer-content">
      <div class="footer-info">
        <div class="author-info">
          <span class="made-by">Made by</span>
          <a 
            href="https://gitee.com/eudon" 
            target="_blank" 
            rel="noopener noreferrer"
            class="author-link"
          >
            eudon
          </a>
        </div>
        <div class="divider">|</div>
        <div class="copyright">
          © 2025 AI智能体应用
        </div>
      </div>
    </div>
  </footer>
</template>

<script setup lang="ts">
// 底部栏组件 - 统一的页脚信息
</script>

<style scoped>
.app-footer {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) var(--spacing-md);
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.author-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.made-by {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
}

.author-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  transition: var(--transition-base);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-md);
}

.author-link:hover {
  color: var(--color-primary-hover);
  background: var(--color-bg-mute);
  text-decoration: underline;
}

.author-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--border-radius-md);
}

.divider {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-base);
  margin: 0 var(--spacing-sm);
  font-weight: var(--font-weight-light);
}

.copyright {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app-footer {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .footer-info {
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
  }
  
  .divider {
    display: none;
  }
  
  .made-by,
  .author-link,
  .copyright {
    font-size: var(--font-size-sm);
  }
  
  .author-info {
    gap: var(--spacing-xs);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .app-footer {
    padding: var(--spacing-lg) var(--spacing-lg);
  }
  
  .footer-info {
    gap: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .footer-info {
    font-size: var(--font-size-xs);
  }
  
  .description-text {
    font-size: 11px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .app-footer {
    background: var(--color-bg-dark);
    border-top-color: var(--color-border-dark);
  }
}
</style>